package com.ss.android.article.common.model;

import android.os.Parcel;
import android.os.Parcelable;
import android.os.Parcelable;

public class UserRole implements Parcelable {
    public static final Parcelable.Creator CREATOR;
    public UserRoleDisplayType mDisplayType;
    public String mRoleName;

    static {
        CREATOR = new k();
    }

    public UserRole() {

    }

    protected UserRole(Parcel arg3) {

        this.mRoleName = arg3.readString();
        int v0 = arg3.readInt();
        UserRoleDisplayType v0_1 = v0 == -1 ? null : UserRoleDisplayType.values()[v0];
        this.mDisplayType = v0_1;
    }

    public int describeContents() {
        return 0;
    }

    public void writeToParcel(Parcel arg2, int arg3) {
        arg2.writeString(this.mRoleName);
        int v0 = this.mDisplayType == null ? -1 : this.mDisplayType.ordinal();
        arg2.writeInt(v0);
    }
}

